#pragma once
#include <vector>
typedef int INTEGER;
typedef bool BOOLEAN;
typedef int LINENUM;
using namespace std;
class Next
{
private:
	vector<pair<LINENUM, LINENUM>> _table;
	INTEGER _size;

public:
	Next();
	BOOLEAN setNext(LINENUM line1, LINENUM line2);
	vector <pair<LINENUM,LINENUM>> getNextPair();
	int getNextSize();
	vector<LINENUM> getNext(LINENUM num2);
    vector<LINENUM> getBefore(LINENUM num1);
	BOOLEAN isNext(LINENUM line1, LINENUM line2);
};

